import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './style.css'
import App from './App.vue'
// import registerGlobalDirective from "../packages/demo-ui/tools/directives/index";
// import registerGlobalComponent from "../packages/demo-ui/index";
import { kkButton, kkPreviewFile, kkDialog } from "../packages/demo-ui/index";

const app = createApp(App)
app.component(kkButton.name, kkButton);
app.component(kkPreviewFile.name, kkPreviewFile);
app.component(kkDialog.name, kkDialog);

app.use(ElementPlus)
// TODO: 指令处理
// registerGlobalDirective(app); 
// registerGlobalComponent(app);

app.mount('#app');